auth: Fix handling passdbs with identical driver/args but different mechanisms/userna...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 May 2022 12:23:33 +0000 (15:23 +0300)
committerNoah Meyerhans <noahm@debian.org>
Sat, 30 Jul 2022 02:58:28 +0000 (19:58 -0700)
commite750bc39ab9e4fec6e41dddcf7f963292d5eec2d
treeddd4b6d5776c6447c63d748f47de187330a5a3d2
parentf7d7e7a05e77020bc1a47fc5c8497ac37ba6d9bd
auth: Fix handling passdbs with identical driver/args but different mechanisms/username_filter

The passdb was wrongly deduplicated in this situation, causing wrong
mechanisms or username_filter setting to be used. This would be a rather
unlikely configuration though.

Fixed by moving mechanisms and username_filter from struct passdb_module
to struct auth_passdb, which is where they should have been in the first
place.

Gbp-Pq: Name auth-Fix-handling-passdbs-with-identical-driver-args-but-.patch
src/auth/auth-request.c
src/auth/auth.c
src/auth/auth.h
src/auth/passdb.c
src/auth/passdb.h